package cn.portx.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

import com.bstek.bdf3.dorado.jpa.annotation.Generator;
import com.bstek.dorado.annotation.PropertyDef;

import cn.portx.policy.CreateUserPolicy;
import cn.portx.policy.CreatedDatePolicy;

@Entity
@Table(name = "T_BILLING_LOG", indexes = {
		@Index(name = "BillingLog_orderExpenseId_", columnList = "ORDER_EXPENSE_ID_") })
public class BillingLog extends BaseEntity {

	private static final long serialVersionUID = -1363541786823269456L;

	@Column(name = "KP_USER_", length = 60)
	@Generator(policy = CreateUserPolicy.class)
	@PropertyDef(label = "开票人")
	private String kpUser;

	@Column(name = "KP_USER_NAME_", length = 60)
	@PropertyDef(label = "开票人")
	private String kpUsername;

	@Column(name = "KP_DATE_")
	@Generator(policy = CreatedDatePolicy.class)
	@PropertyDef(label = "开票日期")
	private Date kpDate;

	@Column(name = "TYPE_")
	@PropertyDef(label = "类型", description = "0：开票；1：取消开票")
	private int type;

	@Column(name = "KPJE_", precision = 10, scale = 2)
	@PropertyDef(label = "开票金额")
	private Double kpje;

	@Column(name = "QKPJE_", precision = 10, scale = 2)
	@PropertyDef(label = "取消开票金额")
	private Double qkpje;

	@Column(name = "ORDER_EXPENSE_ID_", length = 60)
	private String orderExpenseId;

	public String getKpUser() {
		return kpUser;
	}

	public void setKpUser(String kpUser) {
		this.kpUser = kpUser;
	}

	public String getKpUsername() {
		return kpUsername;
	}

	public void setKpUsername(String kpUsername) {
		this.kpUsername = kpUsername;
	}

	public Date getKpDate() {
		return kpDate;
	}

	public void setKpDate(Date kpDate) {
		this.kpDate = kpDate;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public Double getKpje() {
		return kpje;
	}

	public void setKpje(Double kpje) {
		this.kpje = kpje;
	}

	public String getOrderExpenseId() {
		return orderExpenseId;
	}

	public void setOrderExpenseId(String orderExpenseId) {
		this.orderExpenseId = orderExpenseId;
	}

	public Double getQkpje() {
		return qkpje;
	}

	public void setQkpje(Double qkpje) {
		this.qkpje = qkpje;
	}

}
